package com.atguigu.gulimail.product.service;

import com.atguigu.gulimail.product.vo.CataLog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author fk
 * @email hahahahha@gmail.com
 * @date 2020-08-09 21:08:40
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree ();

    void removeByMenuIds (List<Long> asList);

    /**
     * 找到cateLogId的完整路径
     * [父/子/后代]
     * @param catelogId
     * @return
     */
    Long []  finCatelogPath (Long catelogId);

    void updateCascade (CategoryEntity category);

    List<CategoryEntity> selectCategoryLevl1 ();

    Map<String, List<CataLog2Vo>> getCatalogJson () throws InterruptedException;
}

